package midone.exchangeskill.base.view;

import midone.exchangeskill.base.dagger.AppComponent;
import midone.exchangeskill.base.dagger.AppModule;
import midone.exchangeskill.base.dagger.DaggerAppComponent;


/**
 * Created by 想法的猫 on 2016/5/16.
 */
public class Application extends android.app.Application {
    public static Application getApplication() {
        return application;
    }

    static Application application;

    public AppComponent getAppComponent() {
        return appComponent;
    }

    AppComponent appComponent;

    @Override
    public void onCreate() {
        super.onCreate();
        initSome();

    }

    private void initSome() {
        application = this;
        appComponent = DaggerAppComponent.builder().appModule(new AppModule(this)).build();
    }

}
